<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
		<div class="form-group">
				<label for="c-title" class="control-label col-xs-12 col-sm-2">标题:</label>
				<div class="col-xs-12 col-sm-8">
						<input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}" />
				</div>
		</div>
		<div class="form-group">
				<label for="c-catid" class="control-label col-xs-12 col-sm-2">类别:</label>
				<div class="col-xs-12 col-sm-8">
						<div class="selects3">
								<a class="arrow"><img alt="arrowbottom" src="http://qd.andiff.net/netimages/arrow_bottom.png" /></a>
								<span class="selected3">{$row.category.name}</span>								<input type="hidden" id="catid" name="row[catid]" value="{$row.catid}" />
						</div>
				</div>
		</div>
		<div class="form-group">
				<label for="c-status" class="control-label col-xs-12 col-sm-2">状态:</label>
				<div class="col-xs-12 col-sm-8">
						<div class="radio" >
								<label for="status">								<input name="row[status]" type="radio" value="1" {if $row.status eq '1'}checked="checked"{/if} /> 正常</label>
								<label for="status">								<input name="row[status]" type="radio" value="2" {if $row.status eq '2'}checked="checked"{/if} /> 推荐</label>
								<label for="status">								<input name="row[status]" type="radio" value="3" {if $row.status eq '3'}checked="checked"{/if} /> 关闭</label>
						</div>
				</div>
		</div>
		<div class="form-group">
				<label for="c-begintime" class="control-label col-xs-12 col-sm-2">开始日期:</label>
				<div class="col-xs-12 col-sm-8">
						<input id="c-begintime" data-rule="0" class="form-control datetimepicker" name="row[begintime]" type="text" value="<?php echo \fast\Date::timetodate($row['begintime'],5);?>" />
				</div>
		</div>
		<div class="form-group">
				<label for="c-thumb" class="control-label col-xs-12 col-sm-2">图片:</label>
				<div class="col-xs-12 col-sm-8">
						<div class="input-group">
								<input id="c-thumb" class="form-control" size="50" name="row[thumb]" type="text" value="{$row.thumb}" />
								<div class="input-group-addon no-border no-padding">
										<span><button type="button" id="plupload-thumb" class="btn btn-danger plupload" data-input-id="c-thumb" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-thumb"><i class="fa fa-upload"></i>上传</button></span>
								</div>
								<span class="msg-box n-right"></span>
						</div>
						<ul class="row list-inline plupload-preview" id="p-thumb"></ul>
				</div>
		</div>
		<div class="form-group">
				<label for="c-filepath" class="control-label col-xs-12 col-sm-2">文件:</label>
				<div class="col-xs-12 col-sm-8">
						<div class="col-xs-12 col-sm-8">
								<div class="input-group">
										<input id="c-filepath" class="form-control" size="50" name="row[filepath]" type="text" value="{$row.filepath}" />
										<div class="input-group-addon no-border no-padding">
												<span><button type="button" id="plupload-filepath" class="btn btn-danger plupload" data-input-id="c-filepath" data-mimetype="application/msword,application/pdf,application/vnd.ms-excel,application/vnd.ms-powerpoint,application/zip" data-multiple="false"><i class="fa fa-upload"></i>上传</button></span>
										</div>
										<span class="msg-box n-right"></span>
								</div>
						</div>
				</div>
		</div>
		<div class="form-group">
				<label for="c-content" class="control-label col-xs-12 col-sm-2">内容:</label>
				<div class="col-xs-12 col-sm-8">
						<textarea name="row[content]" id="c-content" cols="60" rows="10" class="form-control summernote">{$row.content}</textarea>
				</div>
		</div>
						<div class="form-group">
								<label class="control-label col-xs-12 col-sm-2"></label>
								<div class="col-xs-12 col-sm-8">
										<button type="submit" class="btn btn-success btn-embossed">确定</button>
										<button type="reset" class="btn btn-default btn-embossed">重置</button>
						</div>
				</div>
</form>
